home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CD Fun House 7
/
CD FunHouse 7 For The Macintosh (Wayzata)(1992).iso
/
• The Arcade •
/
Scarab of Ra •••••
/
Scarab of RA
/
Scarab of RA.rsrc
/
CODE_3.txt
< prev
next >
Wrap
Text File
|
1987-12-16
|
12KB
|
205 lines
# near model CODE resource
# jump table entries: 33529-33530 (2 of them)
export_96:
00000000 4E56 FF34 link A6, -0x00CC
00000004 3F3C 0001 move.w -[A7], 0x1
00000008 3F3C 0004 move.w -[A7], 0x4
0000000C 4EAD 008A jsr [A5 + 0x8A /* export_13 */]
00000010 588F addq.l A7, 4
00000012 0C40 0004 cmpi.w D0, 0x4
00000016 6606 bne +0x8 /* 0000001E */
00000018 4A2D E818 tst.b [A5 - 0x17E8]
0000001C 6710 beq +0x12 /* 0000002E */
label0000001E:
0000001E 4879 0000 0CF0 push.l 0xCF0
00000024 4EAD 0502 jsr [A5 + 0x502 /* export_156 */]
00000028 588F addq.l A7, 4
0000002A 6000 0226 bra +0x228 /* 00000252 */
label0000002E:
0000002E 7001 moveq.l D0, 0x01
00000030 1B40 FA30 move.b [A5 - 0x5D0], D0
00000034 3B6D E7F4 FA2E move.w [A5 - 0x5D2], [A5 - 0x180C]
0000003A 426E FFFE clr.w [A6 - 0x2]
0000003E 6000 0090 bra +0x92 /* 000000D0 */
label00000042:
00000042 302D FA2E move.w D0, [A5 - 0x5D2]
00000046 48C0 ext.l D0
00000048 E980 asl D0, 4
0000004A 41ED 9B58 lea.l A0, [A5 - 0x64A8]
0000004E D1C0 add.l A0, D0
00000050 326D E7F6 movea.w A1, [A5 - 0x180A]
00000054 2009 move.l D0, A1
00000056 C090 and.l D0, [A0]
00000058 4A80 tst.l D0
0000005A 6700 007E beq +0x80 /* 000000DA */
0000005E 3F2D E7F6 move.w -[A7], [A5 - 0x180A]
00000062 3F2D FA2E move.w -[A7], [A5 - 0x5D2]
00000066 4EAD 03E2 jsr [A5 + 0x3E2 /* export_120 */]
0000006A 588F addq.l A7, 4
0000006C 3D40 FFFC move.w [A6 - 0x4], D0
00000070 302E FFFC move.w D0, [A6 - 0x4]
00000074 48C0 ext.l D0
00000076 E980 asl D0, 4
00000078 41ED 9B58 lea.l A0, [A5 - 0x64A8]
0000007C D1C0 add.l A0, D0
0000007E 2D68 0008 FFF6 move.l [A6 - 0xA], [A0 + 0x8]
00000084 602E bra +0x30 /* 000000B4 */
label00000086:
00000086 206E FFF6 movea.l A0, [A6 - 0xA]
0000008A 0828 0002 000A btst.b [A0 + 0xA], 0x2
00000090 6618 bne +0x1A /* 000000AA */
00000092 206E FFF6 movea.l A0, [A6 - 0xA]
00000096 0828 0001 000A btst.b [A0 + 0xA], 0x1
0000009C 660C bne +0xE /* 000000AA */
0000009E 206E FFF6 movea.l A0, [A6 - 0xA]
000000A2 0828 0000 000A btst.b [A0 + 0xA], 0x0
000000A8 6710 beq +0x12 /* 000000BA */
label000000AA:
000000AA 206E FFF6 movea.l A0, [A6 - 0xA]
000000AE 2D68 0014 FFF6 move.l [A6 - 0xA], [A0 + 0x14]
label000000B4:
000000B4 4AAE FFF6 tst.l [A6 - 0xA]
000000B8 66CC bne -0x32 /* 00000086 */
label000000BA:
000000BA 4AAE FFF6 tst.l [A6 - 0xA]
000000BE 6706 beq +0x8 /* 000000C6 */
000000C0 526E FFFE addq.w [A6 - 0x2], 1
000000C4 6014 bra +0x16 /* 000000DA */
label000000C6:
000000C6 3B6E FFFC FA2E move.w [A5 - 0x5D2], [A6 - 0x4]
000000CC 526E FFFE addq.w [A6 - 0x2], 1
label000000D0:
000000D0 0C6E 0007 FFFE cmpi.w [A6 - 0x2], 0x7
000000D6 6D00 FF6A blt -0x94 /* 00000042 */
label000000DA:
000000DA 3F3C 0001 move.w -[A7], 0x1
000000DE 4EAD 042A jsr [A5 + 0x42A /* export_129 */]
000000E2 548F addq.l A7, 2
000000E4 3F2D E7F6 move.w -[A7], [A5 - 0x180A]
000000E8 3F2D FA2E move.w -[A7], [A5 - 0x5D2]
000000EC 4EAD 00D2 jsr [A5 + 0xD2 /* export_22 */]
000000F0 588F addq.l A7, 4
000000F2 598F subq.l A7, 4
000000F4 3F3C 311E move.w -[A7], 0x311E
000000F8 486E FF4C pea.l [A6 - 0xB4]
000000FC 4878 FFFF push.l 0xFFFF
00000100 A97C syscall GetNewDialog
00000102 205F movea.l A0, [A7]+
00000104 2D48 FF48 move.l [A6 - 0xB8], A0
00000108 2F2E FF48 move.l -[A7], [A6 - 0xB8]
0000010C A915 syscall ShowWindow
0000010E 2F2E FF48 move.l -[A7], [A6 - 0xB8]
00000112 4EAD 044A jsr [A5 + 0x44A /* export_133 */]
00000116 588F addq.l A7, 4
00000118 3D6D FA2E FFFC move.w [A6 - 0x4], [A5 - 0x5D2]
0000011E 536E FFFE subq.w [A6 - 0x2], 1
label00000122:
00000122 42A7 clr.l -[A7]
00000124 486E FF3A pea.l [A6 - 0xC6]
00000128 A991 syscall ModalDialog
0000012A 0C6E 0002 FF3A cmpi.w [A6 - 0xC6], 0x2
00000130 664A bne +0x4C /* 0000017C */
00000132 302D FA2E move.w D0, [A5 - 0x5D2]
00000136 48C0 ext.l D0
00000138 E980 asl D0, 4
0000013A 41ED 9B58 lea.l A0, [A5 - 0x64A8]
0000013E D1C0 add.l A0, D0
00000140 326D E7F6 movea.w A1, [A5 - 0x180A]
00000144 2009 move.l D0, A1
00000146 C090 and.l D0, [A0]
00000148 4A80 tst.l D0
0000014A 6730 beq +0x32 /* 0000017C */
0000014C 0C6E 0007 FFFE cmpi.w [A6 - 0x2], 0x7
00000152 6E28 bgt +0x2A /* 0000017C */
00000154 2F2E FF48 move.l -[A7], [A6 - 0xB8]
00000158 3F2E FF3A move.w -[A7], [A6 - 0xC6]
0000015C 4EAD 016A jsr [A5 + 0x16A /* export_41 */]
00000160 5C8F addq.l A7, 6
00000162 526E FFFE addq.w [A6 - 0x2], 1
00000166 3F2D E7F6 move.w -[A7], [A5 - 0x180A]
0000016A 3F2D FA2E move.w -[A7], [A5 - 0x5D2]
0000016E 4EAD 03E2 jsr [A5 + 0x3E2 /* export_120 */]
00000172 588F addq.l A7, 4
00000174 3D40 FFFC move.w [A6 - 0x4], D0
00000178 6000 0066 bra +0x68 /* 000001E0 */
label0000017C:
0000017C 0C6E 0003 FF3A cmpi.w [A6 - 0xC6], 0x3
00000182 665C bne +0x5E /* 000001E0 */
00000184 302D FA2E move.w D0, [A5 - 0x5D2]
00000188 48C0 ext.l D0
0000018A E980 asl D0, 4
0000018C 41ED 9B58 lea.l A0, [A5 - 0x64A8]
00000190 D1C0 add.l A0, D0
00000192 3F2D E7F6 move.w -[A7], [A5 - 0x180A]
00000196 2D48 FF34 move.l [A6 - 0xCC], A0
0000019A 4EAD 03EA jsr [A5 + 0x3EA /* export_121 */]
0000019E 548F addq.l A7, 2
000001A0 206E FF34 movea.l A0, [A6 - 0xCC]
000001A4 48C0 ext.l D0
000001A6 C090 and.l D0, [A0]
000001A8 4A80 tst.l D0
000001AA 6734 beq +0x36 /* 000001E0 */
000001AC 0C6E 0001 FFFE cmpi.w [A6 - 0x2], 0x1
000001B2 6F2C ble +0x2E /* 000001E0 */
000001B4 2F2E FF48 move.l -[A7], [A6 - 0xB8]
000001B8 3F2E FF3A move.w -[A7], [A6 - 0xC6]
000001BC 4EAD 016A jsr [A5 + 0x16A /* export_41 */]
000001C0 5C8F addq.l A7, 6
000001C2 536E FFFE subq.w [A6 - 0x2], 1
000001C6 3F2D E7F6 move.w -[A7], [A5 - 0x180A]
000001CA 4EAD 03EA jsr [A5 + 0x3EA /* export_121 */]
000001CE 548F addq.l A7, 2
000001D0 3F00 move.w -[A7], D0
000001D2 3F2D FA2E move.w -[A7], [A5 - 0x5D2]
000001D6 4EAD 03E2 jsr [A5 + 0x3E2 /* export_120 */]
000001DA 588F addq.l A7, 4
000001DC 3D40 FFFC move.w [A6 - 0x4], D0
label000001E0:
000001E0 302E FFFC move.w D0, [A6 - 0x4]
000001E4 B06D FA2E cmp.w D0, [A5 - 0x5D2]
000001E8 6746 beq +0x48 /* 00000230 */
000001EA 3B6E FFFC FA2E move.w [A5 - 0x5D2], [A6 - 0x4]
000001F0 3F3C 0001 move.w -[A7], 0x1
000001F4 4EAD 042A jsr [A5 + 0x42A /* export_129 */]
000001F8 548F addq.l A7, 2
000001FA 3F2D E7F6 move.w -[A7], [A5 - 0x180A]
000001FE 3F2D FA2E move.w -[A7], [A5 - 0x5D2]
00000202 4EAD 00D2 jsr [A5 + 0xD2 /* export_22 */]
00000206 588F addq.l A7, 4
00000208 3F3C 0001 move.w -[A7], 0x1
0000020C 3F3C 0001 move.w -[A7], 0x1
00000210 4EAD 008A jsr [A5 + 0x8A /* export_13 */]
00000214 588F addq.l A7, 4
00000216 0C40 0001 cmpi.w D0, 0x1
0000021A 661E bne +0x20 /* 0000023A */
0000021C 4A2D E818 tst.b [A5 - 0x17E8]
00000220 6618 bne +0x1A /* 0000023A */
00000222 2F2E FF48 move.l -[A7], [A6 - 0xB8]
00000226 3F2E FF3A move.w -[A7], [A6 - 0xC6]
0000022A 4EAD 016A jsr [A5 + 0x16A /* export_41 */]
0000022E 5C8F addq.l A7, 6
label00000230:
00000230 0C6E 0001 FF3A cmpi.w [A6 - 0xC6], 0x1
00000236 6600 FEEA bne -0x114 /* 00000122 */
label0000023A:
0000023A 2F2E FF48 move.l -[A7], [A6 - 0xB8]
0000023E A982 syscall CloseDialog
00000240 422D FA30 clr.b [A5 - 0x5D0]
00000244 3F2D E7F6 move.w -[A7], [A5 - 0x180A]
00000248 3F2D E7F4 move.w -[A7], [A5 - 0x180C]
0000024C 4EAD 00D2 jsr [A5 + 0xD2 /* export_22 */]
00000250 588F addq.l A7, 4
label00000252:
00000252 4E5E unlink A6
00000254 4E75 rts
00000256 4249 clr.w A1
00000258 4E4F trap 15
0000025A 4353 chk.w D1, [A3]
0000025C 2020 move.l D0, -[A0]
export_95:
0000025E 3F2D E7F6 move.w -[A7], [A5 - 0x180A]
00000262 3F2D FA2E move.w -[A7], [A5 - 0x5D2]
00000266 4EAD 00D2 jsr [A5 + 0xD2 /* export_22 */]
0000026A 588F addq.l A7, 4
0000026C 4E75 rts